/**
* Copyright (c) 2022 - present TinyVue Authors.
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/

@import '../custom.less';
@import './vars.less';

@time-select-prefix-cls: ~'@{css-prefix}time-select';
@picker-panel-prefix-cls: ~'@{css-prefix}picker-panel';
@time-select-scrollbar-cls: ~'@{css-prefix}scrollbar';

.@{time-select-prefix-cls} {
  .inject-TimeSelect-vars();

  &.not-match-height {
    height: 36px;
  }
  height: 242px;
  padding-top: var(--tv-TimeSelect-content-padding-top);
  .@{time-select-scrollbar-cls} {
    height: 100%;
    .@{css-prefix}scrollbar__wrap {
      max-height: unset;
    }
  }

  & &__item {
    color: var(--tv-TimeSelect-item-text-color);
    font-size: var(--tv-TimeSelect-item-font-size);
    padding: 0 var(--tv-TimeSelect-item-padding-horizontal);
    line-height: 32px;
    height: 32px;


    &.selected:not(.disabled) {
      color: var(--tv-TimeSelect-item-selected-text-color);
    }

    &:not(.disabled):hover {
      background-color: var(--tv-TimeSelect-item-hover-bg-color);
      cursor: pointer;
    }

    &.disabled {
      color: var(--tv-TimeSelect-item-disabled-text-color);
      cursor: not-allowed;
    }
  }
  .@{picker-panel-prefix-cls} {
    &__content {
      padding-left: 0;
      padding-right: 0;
      .no-match {
        text-align: center;
      }
    }
  }
}
